-- GENERATED SPELL FOR [North Fleet Medic] --


function spell0_23794(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23794', 2500, 1)
end

function spell1_23794(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(11640,pUnit)
pUnit:RegisterEvent('Sorts_23794', 15000, 1)
end

function Sorts_23794(pUnit, Event)
local choix_sorts_23794 = math.random(0, 1)
if choix_sorts_23794 == 0 then
pUnit:RegisterEvent('spell0_23794', 1, 1)
end
if choix_sorts_23794 == 1 then
pUnit:RegisterEvent('spell1_23794', 1, 1)
end
end

function mob23794_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23794', math.random(1500, 3000), 1)
end

function mob23794_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23794_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23794_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23794, 1, 'mob23794_Action')
RegisterUnitEvent(23794, 2, 'mob23794_Leave')
RegisterUnitEvent(23794, 3, 'mob23794_Kill')
RegisterUnitEvent(23794, 4, 'mob23794_Die')
